package com.chinacoal.hr.levelapi.client;

import com.chinacoal.hr.levelapi.client.fallback.AttendanceTaskClientFallback;
import com.chinacoal.hr.levelapi.client.response.Result;
import io.swagger.annotations.Api;
import org.springframework.cloud.openfeign.FeignAutoConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by jinyabin on 2020/10/29.
 */
@Api(tags = {"获得任务的详情数据"})
@FeignClient(name = "ccip-hr-attendance",configuration = FeignAutoConfiguration.class,fallback = AttendanceTaskClientFallback.class)
public interface AttendanceTaskClient {

    /**
     * 获得任务的详情数据
     *
     * @param bizCode :
     * @param bizID   :
     * @return : com.chinacoal.hr.levelimpl.response.Result
     * @author : YunTao.Li
     * @date : 2020/6/7 2020/6/7
     */
    @GetMapping("/task/info")
    public Result getTaskInfo(@RequestParam("bizCode") String bizCode, @RequestParam("bizID") String bizID);
}
